'use strict';

// Declare app level module which depends on filters, and services

angular.module('myApp', [
        'myApp.controllers',
        'myApp.filters',
        'myApp.services',
        'myApp.directives'
    ]).
    config(function ($routeProvider, $locationProvider) {
        $routeProvider.
            when('/home', {
                templateUrl: 'partials/home',
                controller: 'PartialController'
            }).
            when('/projects', {
                templateUrl: 'partials/projects',
                controller: 'PartialController'
            }).
            when('/services', {
                templateUrl: 'partials/services',
                controller: 'PartialController'
            }).
            when('/downloads', {
                templateUrl: 'partials/downloads',
                controller: 'PartialController'
            }).
            when('/about', {
                templateUrl: 'partials/about',
                controller: 'PartialController'
            }).
            when('/contact', {
                templateUrl: 'partials/contact',
                controller: 'PartialController'
            }).
            otherwise({
                redirectTo: '/home'
            });

        $locationProvider.html5Mode(true);
    });
